home *** CD-ROM | disk | FTP | other *** search
- Path: news.cern.ch!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: Why are &apple and apple, where apple is an array, the same
- Date: 19 Apr 96 00:57:54 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.829875474@news.cern.ch>
- References: <AD9C7BE9966828AF7@ad49-131.compuserve.com>
- NNTP-Posting-Host: ues5.cern.ch
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
- X-Newsreader: NN version 6.5.0 #18 (NOV)
-
- In <AD9C7BE9966828AF7@ad49-131.compuserve.com> 101641.317@compuserve.com (Martin Mamo) writes:
-
- >The following C program contains two printf's. They both
- >give the same answer, despite the fact one gives the
- >value of apple and the other &apple.
- >
- >I know in C, an array variable is the address of the
- >first element. So why do C compilers on both Macs and PCs
- >allow you to take an address of an address? Why does
- >apple and &apple, where apple is an array variable, give
- >the same result.
- >
- >Please can you reply by e-mail to me as well, as I check
- >newsgroups less often than my e-mail. Thanks.
-
- A copy of the FAQ has been sent via email, as requested.
- No need to rehash this topic in the newsgroup, again.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-